<?php
/*
 * core/visitor.php
 *
 * Provide visitor counting / listing
 */

function registerVisitor()
{
	require_once( 'database_fct.php' );

	CoreDBFct::insertVisitor( $_SERVER['REMOTE_ADDR'], // client ip address
														$_SERVER['REMOTE_PORT'], // client port
														$_SERVER['REMOTE_HOST'], // client hostname
														$_SERVER['HTTP_REFERER'],
														$_SERVER['HTTP_USER_AGENT'],
														$_SERVER['REQUEST_METHOD'],
														$_SERVER['REQUEST_URI'] );
}

if( isSessionStart() )
{
	registerVisitor();
}

?>
